package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 代理商模块-代理商退费记录表
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("amc_agent_refund")
public class AgentRefund extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 代理商id
     */
    private Long agentId;

    /**
     * 退费金额
     */
    private BigDecimal amount;

    /**
     * 退费方式 1，线上；2，线下
     */
    private Integer refundType;

    /**
     * 代理商等级 代理商退费时的等级
     */
    private Integer agentLevel;

    /**
     * 备注
     */
    private String remark;

    /**
     * 退费时间
     */
    private Date refundTime;

    /**
     * 乐观锁
     */
    private Integer revision;

    /**
     * 创建人
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;


    /**
     * 创建人
     */
    private String creator;

}
